//
//  RegisterStep2Controller.m
//  KuWeiPark
//
//  Created by Kevin Su on 15/4/28.
//  Copyright (c) 2015年 Clief. All rights reserved.
//

#import "RegisterStep2Controller.h"
#import "HomeViewController.h"

@interface RegisterStep2Controller ()<UITextFieldDelegate>

@end

@implementation RegisterStep2Controller

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.finishButton.layer.masksToBounds = YES;
    self.finishButton.layer.cornerRadius = 5;
    
    self.cardCardNoTextField.delegate = self;
}

- (void)viewWillDisappear:(BOOL)animated{
    
    [self hideKeyboard];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - IBAction

- (IBAction)showChooseCarCardPlaceView:(id)sender {
    
    //选择车牌归属地
}

- (IBAction)showNextStepViewAction:(id)sender {
    
    //下一步
    HomeViewController *homeViewController = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"HomeViewController"];
    [self.navigationController pushViewController:homeViewController animated:YES];
}

- (IBAction)back:(id)sender {
    
    [self.navigationController popViewControllerAnimated:YES];
}

#pragma mark - TextFieldDelegate
- (BOOL)textFieldShouldReturn:(UITextField *)textField{
    
    [self hideKeyboard];
    return YES;
}

- (void)hideKeyboard{
    
    [self.cardCardNoTextField resignFirstResponder];
}

@end
